/*
 * sr_debug.c - EnCluster Standard Representation Module
 * Clunix, glory@clunix.com, yjlee@clunix.com, 2001.6.5,25.
 * Clunix, cezanne@clunix.com, 2005.1
 *
 * Copyright (c) 2001-2008 by Clunix Inc. All Rights Reserved.
 */

#include "config.h"

#include "sr.h"

#ifdef ECM_DEBUG

ECMBOOL	sr_debug_flex = ECM_FALSE;
extern int	srpdebug;

void
sr_set_debugset(int dbgset)
{
	if (dbgset & SR_DBG_BISON)
		srpdebug = 1;
	if (dbgset & SR_DBG_FLEX)
		sr_debug_flex = ECM_TRUE;
}

sr_t *
sr_get_real_assert(const sr_t *sr_vir)
{
	sr_t	*sr_res = sr_get_real(sr_vir);

	ECMASSERT(sr_res != NULL);
	return sr_res;
}

#endif
